﻿using System.Collections.Generic;
using XieCan.AspMVC.Models;

namespace XieCan.AspMVC.IService
{
    public partial interface IRoleService
    {
        /// <summary>
        /// 查询角色列表
        /// </summary>
        /// <param name="name">角色名</param>
        /// <returns></returns>
        OperateResult<RoleModel> GetRoleList();
        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        OperateResult<RoleModel> AddRole(RoleModel dto);
        /// <summary>
        /// 更新角色信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        OperateResult<RoleModel> EditRole(RoleModel dto);

        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        OperateResult<RoleModel> Delete(RoleModel dto);
    }
}
